<?php
if (isset($this->updded) && ($this->updded)) {
print <<<Eof
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>后台管理系统--文件上传</title>
<meta http-equiv=content-type content="text/html; charset=utf-8" />
<script language="javascript">
function ret(){
opener.document.all.logopath.value = document.getElementById('uppath').value;
window.close();
}
</script>
 </head>
 <body>
Eof;
	echo $this->msg;
	echo '<input type="text" value="'.$this->uppath.'" name="uppath" id="uppath" size="40"/><br/>';
	echo '<input type="button" value="关闭" name="closewind" id="closewind" 
	onclick="ret();" />';
print <<<Eof
 </body>
</html>
Eof;

} else 
	print <<<Eof
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>后台管理系统--文件上传</title>
<meta http-equiv=content-type content="text/html; charset=utf-8" />
 </head>
 <body>
<form enctype="multipart/form-data" action="/admin/upload" method="POST">
	<input type="hidden" name="pictype" id="pictype" value="logo" />
    <input type="hidden" name="MAX_FILE_SIZE" value="900000" />
    Send this file: <input type="file" name="upfile" id="upfile" />
    <input type="submit" name="up" id="up" value="上传文件" />
</form>

 </body>
</html>

	
Eof;
?>